package com.hzdesk.media.matvector.koreabatch.client.my_paperless.fragment.Fragment_view;

import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.hzdesk.media.matvector.koreabatch.client.my_paperless.R;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.custom_view.MyRecyclerView;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.fragment.BaseFragment;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.fragment.Fragment_persenter.ShareListPersenter;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.logic.contract.IShareListContract;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.logic.view.MettingListActivity;

/**
 * Created by Administrator on 2018/8/8.
 * 杭州席媒科技有限公司  Developers  刘传华  10
 * 佛祖镇楼 bug辟易
 *
 * 分享列表 碎片
 */

public class ShareListFragment extends BaseFragment implements IShareListContract.IShareListView {
    private MyRecyclerView my_recylerview;
    private RelativeLayout rl;
    private ImageView rl1;
    private ShareListPersenter mShareListPersenter = new ShareListPersenter(this);
    @Override
    protected void cancellationControls() {

    }

    @Override
    protected void initDate() {
        mShareListPersenter.initTiltle();

        mShareListPersenter.initRecyclerView(my_recylerview,mContext);
    }

    @Override
    protected View getChildFragmentView() {
        View view = View.inflate(mContext, R.layout.fragment_share_disk,null);
        my_recylerview = view.findViewById(R.id.fragment_share_disk_my_recylerview);
        rl = view.findViewById(R.id.my_recyclerview_empty_rl);
        rl1 = view.findViewById(R.id.iv_prompt_empty_view);
        return view;
    }

    @Override
    protected void onClickedTvRight() {

    }

    @Override
    protected void onClickedIvRight() {

    }

    @Override
    protected void onClickedIvLeft() {

    }

    @Override
    public void showTiltle() {
        showTilteBg();
        showTitleContent();
        showTilteRightContent();

        //设备管理(6)
        setTitleContent("我收到的分享", 0xffffffff);
        setTitleContentSize(18);
        setTilteRightContent("全选",0xffffffff);
        setTitleRightContentSize(16);
    }

    @Override
    public void toMettingListPager() {
        toPageJump(MettingListActivity.class);
    }
}
